home *** CD-ROM | disk | FTP | other *** search
Makefile | 1990-07-13 | 1.4 KB | 66 lines |
- # Copyright (C) 1987 Princeton University
-
- # This file is part of CWEB.
- # This program by Silvio Levy is based on a program by D. E. Knuth.
- # It is distributed WITHOUT ANY WARRANTY, express or implied.
- # $Revision 1.1$ -- Dec 1987
-
- MACROSDIR= /usr/lib/tex/macros
- DESTDIR= /usr/local/bin/
- DESTPREF=
- WEAVE = ./weave
- TANGLE = ./tangle
- SOURCES = weave.web common.web tangle.web
- ALMOSTALL = common.web tangle.web Makefile README common.c common.h tangle.c \
- webman.tex cwebmac.tex examples vms.ch
- ALL = $(ALMOSTALL) weave.web
- CFLAGS = -O
-
- .SUFFIXES: .tex .dvi .web .print
-
- .web.tex:
- $(WEAVE) $*
-
- .tex.dvi:
- tex $*
-
- .web.dvi:
- $(WEAVE) $*
- tex $*
-
- .web.c:
- $(TANGLE) $*
-
- .web.o:
- make $*.c
- make $*.o
-
- .dvi.print:
- qpr -x $*.dvi
-
- all: tangle weave
-
- tangle: tangle.o common.o
- cc $(CFLAGS) -o tangle tangle.o common.o
-
- weave: weave.o common.o
- cc $(CFLAGS) -o weave weave.o common.o
-
- doc: $(SOURCES)
- for i in $?; do make `echo $$i | sed "s/web$$/dvi/"`; done
- @touch doc
-
- #leave *.c
- clean:
- rm -f -r *.o common.tex weave.tex weave.c tangle.tex *.log *.dvi core weave.web.[12] cweb.*
-
- install: all
- mv weave $(DESTDIR)$(DESTPREF)weave
- mv tangle $(DESTDIR)$(DESTPREF)tangle
- cp cwebmac.tex $(MACROSDIR)
-
- bundle: $(ALL)
- sed -n '1,1500 p' weave.web > weave.web.1
- sed -n '1501,$$ p' weave.web > weave.web.2
- /n/fine/usr/local/bin/shar -m100000 -c -v -f cweb $(ALMOSTALL) weave.web.[12]
-